home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 14
/
Hot Mix 14.iso
/
HTML
/
vendors
/
finesse
/
examples
/
csh
/
option_menu
< prev
Wrap
Text File
|
1996-06-27
|
584b
|
25 lines
#! /bin/csh
# FINESSEAPPLICATIONKEY sAUdeyM@yDXqF
if ( ! $?FINESSEPATH ) \
set FINESSEPATH = /usr/local/finesse
source $FINESSEPATH/fscshinit
# Define window elements
set fswin = "FsWindow -title 'Option Menu' -btype o;"
set fssep = "FsSeparator;"
set fsoptmen = "FsOptionMenu -label Options:"
set fsoptite = "-items 'One Two Three' -var option=Two;"
set fsopt = "$fsoptmen $fsoptite"
# windef has to be written as one line to support all cshs
set windef = "$fswin $fssep $fsopt $fssep"
Fsopen
Fsdisplay -m "Select Option:" -w "$windef"
Fsclose
echo "Option selected: $option"